package com.wjc.wiki.service;

import com.wjc.wiki.mapper.EbookSnapshotMapperCust;
import com.wjc.wiki.resp.StatisticResp;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class EbookSnapshotService {
    @Resource
    private EbookSnapshotMapperCust ebookSnapshotMapperCust;

   public void genSnapshot(){
        ebookSnapshotMapperCust.genSnapshot();
   }

   public List<StatisticResp> getStatistic(){
       return ebookSnapshotMapperCust.getStatistic();
   }

    public List<StatisticResp>  get30Statistic(){
        return ebookSnapshotMapperCust.get30Statistic();
    }


}
